import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:niu_app/pages/dynamic/dynamic_page.dart';
import 'package:niu_app/tap/Tap_t.dart';
import 'NoSplashFactory.dart';


void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: Size(375,812),
        allowFontScaling: false,
        builder: ()=>GetMaterialApp(
          debugShowCheckedModeBanner: false,
          theme: ThemeData(
            primaryColor: Colors.blue,
            visualDensity: VisualDensity.adaptivePlatformDensity,
            highlightColor: Colors.transparent,
            splashFactory: const NoSplashFactory(),
          ),
          home: Scaffold(
            body: CustomScrollView(
              scrollDirection: Axis.vertical,
              slivers: <Widget>[
                SliverAppBar(
                  pinned: true,
                  floating: true,
                  snap: false,
                  expandedHeight:218.0.w,
                  actions: <Widget>[
                    Container(
                      margin: EdgeInsets.only(right: 16),
                      child: Icon(Icons.edit,color: Color.fromRGBO(192, 152, 78, 1),size: 16,),
                    ),
                  ],
                  flexibleSpace:FlexibleSpaceBar(
                    background: Tap(),
                  ),
                ),
                SliverFixedExtentList(itemExtent:600.0,delegate: SliverChildBuilderDelegate((BuildContext Context,int index){
                    return dynamic_Page();
                },childCount: 1),
              ),
              ],
            ),
          ),
        ));
  }
}
